#ifndef RESOURCE_H
#define RESOURCE_H

#include "serializable.h"
#include "tabledisplayable.h"

class Resource : public QObject, public Serializable, public TableDisplayable
{
public:

    virtual bool serialize(QXmlStreamWriter * w) =0;
    virtual bool deserialize(QXmlStreamReader * r)=0;
    virtual QStringList getHeaders();
    virtual QList<QTableWidgetItem*> getItems();
    virtual void setId(int id);
    int getId();

protected:
    int m_id;
};

#endif // RESOURCE_H
